from dim_api_auto_test.DimAPI.material_apply_list import MaterialApplyList
from dim_api_auto_test.DimAPI.material_list import MaterialList
from dim_api_auto_test.DimAPI.purchase_apply import PurchaseApply
from dim_api_auto_test.DimAPI.purchase_apply_wait_list import PurchaseApplyWaitList
from dim_api_auto_test.DimAPI.purchase_contract import PurchaseContract
from dim_api_auto_test.DimAPI.search import Search
from dim_api_auto_test.DimAPI.supplier_bill_deal import SupplierBillDeal


class DIM:
    def __init__(self, **kwargs):
        self.search = Search(**kwargs)
        self.material_apply_list = MaterialApplyList(**kwargs)
        self.material_list = MaterialList(**kwargs)
        self.purchase_apply = PurchaseApply(**kwargs)
        self.purchase_apply_wait_list = PurchaseApplyWaitList(**kwargs)
        self.purchase_contract = PurchaseContract(**kwargs)
        self.supplier_bill_deal = SupplierBillDeal(**kwargs)


if __name__ == "__main__":
    r = DIM()
    x = r.search.search_material("14500")
    print(x)
